//
var TN_Widget = function() {
return {
//Options
newWindow : true,
linkText : "view
tickets",
tixUrl : "http://www.ticketnetwork.com/tix/",
trackingParams : "",
custLink : true,
//depricated
kbid : "",
//Overwrittable functions
trackingLink :"",
CreateCustomUrl : function(row) {
return this.tixUrl + row[7] + "-tickets-"+ row[6] + ".aspx";
},
CreateEventRow : function(row, isAlt) {
return "
" +
row[0] +" | " +
row[1] +" " +
row[2] +" | " +
row[3] +" " +
row[4] + " " +
row[5] + " | "+ this.linkText+ " |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kywrds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
if(this.kbid != "")
this.trackingParams = "?img=249&kbid="+this.kbid;
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = '' + newTable.join('') + '
';
} else
document.write('' + newTable.join('') + '
');
if(eventData.length >= 100 && kywrds != undefined) {
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML += '';
} else {
document.write("");
}
}
if(eventData.length > 0) {
document.getElementById("previewNote").style.display = "none";
}
}
};
}();
//BPW-TNSERV-02B
TN_Widget.CreateTable([['Naples Philharmonic & The Naples Philharmonic Youth Orchestra: Radu Paponiu - Side-by-Side','Artis-Naples','Naples, FL','Sunday','5/19/2024','7:00 PM','6195363','Naples-Philharmonic---The-Naples-Philharmonic-Youth-Orchestra--Radu-Paponiu---Side-by-Side-5-19-2024'],['Naples Philharmonic: Radu Paponiu - Patriotic Pops','Artis-Naples','Naples, FL','Thursday','5/23/2024','8:00 PM','6233804','Naples-Philharmonic--Radu-Paponiu---Patriotic-Pops-5-23-2024'],['Naples Philharmonic: Radu Paponiu - Patriotic Pops','Artis-Naples','Naples, FL','Friday','5/24/2024','8:00 PM','6233805','Naples-Philharmonic--Radu-Paponiu---Patriotic-Pops-5-24-2024'],['Festival of Great Organ Music','Artis-Naples','Naples, FL','Sunday','6/9/2024','3:00 PM','6195362','Festival-of-Great-Organ-Music-6-9-2024'],['Massapequa Philharmonic: David Bernard, Ted Rosenthal & Sarah Ellis - Rhapsody In Blue At 100','Concert Hall At Tilles Center for the Performing Arts','Brookville, NY','Sunday','7/14/2024','3:00 PM','6412067','Massapequa-Philharmonic--David-Bernard--Ted-Rosenthal---Sarah-Ellis---Rhapsody-In-Blue-At-100-7-14-2024'],['South Carolina Philharmonic: Star Wars - A New Hope In Concert','Koger Center For The Arts','Columbia, SC','Sunday','8/25/2024','2:00 PM','6425083','South-Carolina-Philharmonic--Star-Wars---A-New-Hope-In-Concert-8-25-2024'],['South Carolina Philharmonic: Star Wars - A New Hope In Concert','Koger Center For The Arts','Columbia, SC','Sunday','8/25/2024','7:00 PM','6425085','South-Carolina-Philharmonic--Star-Wars---A-New-Hope-In-Concert-8-25-2024']],'Philharmonic Center for the Arts','http://www.ticketnetwork.com/ticket/Philharmonic-Center-for-the-Arts-events.aspx');